<body>
<div id="login">
<div class="login-top"><i class="iconfont">&#xF010;</i> SitePlus+ 应用平台</div>
<form id="uform" action="{url('index/login')}">
  <div class="login_content">
    <h4>帐号：</h4><div><input datatype="*" nullmsg="请输入用户名" type="text" name="username"  x-webkit-speech /></div>
    <h4>密码：</h4><div><input datatype="*" nullmsg="请输入密码" type="password" name="password" /></div>
  </div>
  <div class="login_bottom">
    <div class="fn-r"><button class="submit button button-blue button-large" type="submit"><i class="iconfont fn-f16">&#xF03E;</li> <span>登 录</span></button></div>
    <div class="fn-l" id="vform"></div>
  </div>
</form>
</div>
<style type="text/css">html,body{background-color: #036}</style>
<script type = "text/javascript" >
Do('Form','Dialog',function(){
    $("#uform").Validform({
        btnSubmit:".submit",
        ajaxPost:true,
        tiptype:function(msg, o, cssctl) {
            if (!o.obj.is("form")) {
                var objtip = $("#vform");
                cssctl(objtip, o.type);
                objtip.text(msg);
            }
        },
        callback:function(data) {
            if (data.status == "1") {
                $.dialog.top.location.href = "/index.php?r=admin/index/index";
            } else {
                $.dialog.alert(data.info);
            }
        }
    });
})
</script>
</body>